//
//  CYFinanceViewModel.h
//  cyjf
//
//  Created by tauCross on 2017/5/5.
//  Copyright © 2017年 Auto Financing. All rights reserved.
//

#import "CYViewModel.h"

#import "CYDataAPIFinanceModel.h"



typedef NS_ENUM(NSUInteger, CYFinanceViewModelStatus) {
    CYFinanceViewModelStatusOnSale,
    CYFinanceViewModelStatusWillSale,
    CYFinanceViewModelStatusFull,
    CYFinanceViewModelStatusDone
};



@interface CYFinanceViewModel : CYViewModel

+ (instancetype)modelWithAPIModel:(CYDataAPIFinanceModel *)apiModel;

@property(nonatomic, strong)NSNumber *fid;
@property(nonatomic, strong)NSString *title;
@property(nonatomic, strong)NSString *rate;
@property(nonatomic, strong)NSString *additionRate;
@property(nonatomic, strong)NSString *due;
@property(nonatomic, assign)CYFinanceViewModelStatus status;
@property(nonatomic, strong)NSString *perCent;
@property(nonatomic, strong)NSDate *saleDate;
@property(nonatomic, strong)NSString *tag;

@property(nonatomic, strong)CYDataAPIFinanceModel *apiModel;

@end
